package cn.itsource.autoconfigure;

import cn.itsource.config.WxPlusProperties;
import cn.itsource.service.WxService;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties({WxPlusProperties.class})
public class WxPlusAutoConfiguration {

    @Bean
    public WxService getWxService(WxPlusProperties wxPlusProperties){
        return new WxService(wxPlusProperties);
    }
}
